<gm:page title="My App" authenticate="true">
  
  <script>
    function refreshLabels() {
      google.mashups.getObjectById('labelsList').refresh();
    }
  </script>

  <gm:list data="http://digg.com/rss/index.xml|${annotations}" pagesize="2" template="myTemplate"/>
  
  <p></p>
  <h2>Labels feed</h2>
  <gm:list id="labelsList" data="${labels}"/>
  <button onclick="refreshLabels()">Refresh labels</button>
  
  <gm:template id="myTemplate">
    <div style="margin-bottom:20px" repeat="true">
      <i><gm:text ref="atom:title"/></i><gm:labels/>
    </div>
  </gm:template>

</gm:page>